/**
 * @description: 加工工艺
 */

import requestMD5 from "@/utils/requestMd5";

export function process_index(params) {
  return requestMD5({
    url: "/process/index",
    method: "get",
    params
  });
}
export function process_getFormula(params) {
  return requestMD5({
    url: "/process/getFormula",
    method: "get",
    params
  });
}

export function process_add(data) {
  return requestMD5({
    url: "/process/add",
    method: "post",
    data: data
  });
}

// 领料列表
export function process_getList(params) {
  return requestMD5({
    url: "/process/getProcessList",
    method: "get",
    params
  });
}

// 领料操作
export function process_received(data) {
  return requestMD5({
    url: "/process/received",
    method: "post",
    data: data
  });
}

// 成品入库
export function process_storage(data) {
  return requestMD5({
    url: "/process/storage",
    method: "post",
    data: data
  });
}

// 余料入库
export function process_lastStorage(data) {
  return requestMD5({
    url: "/process/lastStorage",
    method: "post",
    data: data
  });
}

// 查看
export function process_getinfo(params) {
  return requestMD5({
    url: "/process/info",
    method: "get",
    params
  });
}
